package cn.js.ccit.service.impl;

import cn.js.ccit.mapper.UserMapper;
import cn.js.ccit.service.UserService;
import cn.js.ccit.utils.MyBatisUtils;
import cn.js.ccit.vo.UserVo;

import java.util.List;

public class UserServiceImpl implements UserService {
    UserMapper userMapper =  MyBatisUtils.getSession().getMapper(UserMapper.class);
    @Override
    public List<UserVo> getAllUser() {
        return userMapper.getAllUser();
    }

    @Override
    public UserVo getUserById(Integer userId) {
        return userMapper.getUserById(userId);
    }
}
